package com.example.models

import kotlinx.serialization.Serializable

@Serializable
data class Order(val number: String, val contents: List<OrderItem>)

@Serializable
data class OrderItem(val item: String, val amount: Int, val price: Double)

val orderStorage = listOf(
    Order(
        "2024-03-25-01",
        listOf(
            OrderItem("Ham Sandwich", 2, 2.5),
            OrderItem("Water", 1, 1.5),
            OrderItem("Beer", 3, 2.3),
            OrderItem("Cheesecake", 1, 2.75)
        )
    ),
    Order(
        "2024-03-25-02",
        listOf(
            OrderItem("Cheeseburger", 1, 8.5),
            OrderItem("Water", 2, 1.5),
            OrderItem("Coke", 2, 1.86),
            OrderItem("Ice Cream", 1, 2.55)
        )
    ),
)